/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jsf.service;

import com.jsf.view.PageBean;
import javax.annotation.PostConstruct;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.SessionScoped;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author gang
 */
@SessionScoped
public abstract class PageSessionBean extends PageBean {
    protected final Logger log = LoggerFactory.getLogger(getClass());

    @PostConstruct
    private void postConstruct() {
        init();
    }

    /**
     * @PostConstruct 初始化方法, 在构造方法之前执行
     */
    protected abstract void init();
}
